package com.wang.business.interfaceImpl;

import com.wang.api.Interface.Service;
import com.wang.api.userInfo.UserRequest;
import com.wang.api.userInfo.UserResponse;
import com.wang.common.Log;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService
public class UserImpl implements Service<UserRequest, UserResponse> {

    @Override
    @Log(serviceName = "user")
    public UserResponse execute(UserRequest request) {
        UserResponse ret = new UserResponse();
        ret.setName(request.getName());
        ret.setAge(request.getAge());
        return ret;
    }
}
